import request from '@/utils/request'

// 获取收入图标
export function getIncomesList(query) {
    return request({
      url: '/workbench/mainBusinessIncome',
      method: 'get',
      params: query
    })
  }
// 码号收入趋势
export function getNumList(query) {
    return request({
      url: '/workbench/codeNumberRevenueTrend',
      method: 'get',
      params: query
    })
  }
  // 预算完成情况
export function getbudgetCompletion(query) {
    return request({
      url: '/workbench/budgetCompletion',
      method: 'get',
      params: query
    })
}
  // 预算完成情况
  export function getCodes(query) {
    return request({
      url: '/workbench/indexCodeS',
      method: 'get',
      params: query
    })
}
  // 预算日期
  export function getMonths(query) {
    return request({
      url: '/workbench/maxacctMonth',
      method: 'get',
      params: query
    })
}

// 趋势图
export function incomeCompletion(query) {
    return request({
      url: '/workbench/incomeCompletion',
      method: 'get',
      params: query
    })
}

// 趋势图表格
export function incomeCompletionTable(query) {
    return request({
      url: '/workbench/incomeCompletionTable',
      method: 'get',
      params: query
    })
}

// 看产品
export function productCompletion(query) {
    return request({
      url: '/workbench/productCompletion',
      method: 'get',
      params: query
    })
}

// 看来源表格图
export function sourceCompletionTable(query) {
    return request({
      url: '/workbench/sourceCompletionTable',
      method: 'get',
      params: query
    })
}

// 看来源
export function sourceCompletion(query) {
    return request({
      url: '/workbench/sourceCompletion',
      method: 'get',
      params: query
    })
}

// 产品趋势图
export function productCompletionMap(query) {
    return request({
      url: '/workbench/productCompletionMap',
      method: 'get',
      params: query
    })
}

// 查询区域
export function roleDeptTreeselecttw(query) {
    return request({
        url: '/system/dept/roleDeptTreeselecttw',
        method: 'get',
        params: query
    })
}
